# Open Cloud Initiative (OCI)
# Author: Sam Johnston <samj@samj.net> 2009-04-10
# Creates documents in various formats from DocBook v5 source

XSL=~/Library/XML/XSL/docbook-xsl-ns-1.75.2

all: xhtml pdf

xhtml: open-cloud-principles.xml
	xsltproc --output open-cloud-principles.html --stringparam paper.type A4 --stringparam generate.toc "" $(XSL)/xhtml-1_1/docbook.xsl open-cloud-principles.xml

pdf: open-cloud-principles.xml
	xsltproc --output open-cloud-principles.fo --stringparam paper.type A4 --stringparam generate.toc "" $(XSL)/fo/docbook.xsl open-cloud-principles.xml
	java org.apache.fop.cli.Main -fo open-cloud-principles.fo -pdf open-cloud-principles.pdf
